]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dbusService: Queue shutdown check on startup
authorJonas Ådahl <jadahl@gmail.com>
Wed, 22 Jul 2020 16:22:38 +0000 (18:22 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Fri, 31 Jul 2020 08:51:12 +0000 (10:51 +0200)
If something started the service, but crashed before managing to make a
method call, we'd end up with the service running indefinitely. Fix this
by queueing a shutdown check immediately on startup.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1372

js/dbusServices/dbusService.js

index 93873e2874de563c3a9a57b7e06d48ddef4e5216..71b1e35d7e474c4fab6fbaa30b331bca9d2a51f4 100644 (file)
@@ -25,6 +25,8 @@ var ServiceImplementation = class {
 
         // subclasses may override this to disable automatic shutdown
         this._autoShutdown = true;
+
+        this._queueShutdownCheck();
     }
 
     // subclasses may override this to own additional names